<?php
defined( '_VALID_MOS' ) or die('<script>window.location.href="http://www.kinifurniture.com";</script>');
		
		 $sql=$dbh->query("update tbl_session set active='0' where id='$_SESSION[SESSIONBROWSEONLINE]'");
		//$sql=$dbh->query("delete from tbl_session where id='$_SESSION[SESSIONBROWSEONLINE]'");
		unset($_SESSION['SESSIONBROWSEONLINE']);
		
        $sql=$dbh->query("update user set online='N' where user_id='$_SESSION[SESSIONUSERID]'");
		unset($_SESSION['SESSIONUSERID']);
			
		echo"<script>window.location.href='index.php'</script>";
	
?>